package com.itheima_02;

public class MethodDemo {

    public static void main(String[] args) {
        System.out.println(isEvenNumber(10));
        System.out.println(getMax(1, 2));
    }

    public static boolean isEvenNumber(int num) {
        return num % 2 == 0;
    }

    public static int getMax(int num1, int num2) {
        return num1 > num2 ? num1 : num2;
    }
}
